<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>Document</title>
		<script src="./vue.global.js"></script>
		<link rel="stylesheet" href="./index.css" />
		<link rel="stylesheet" href="./table.css" />
		<link rel="stylesheet" href="./pugong.css" />
		<link rel="stylesheet" href="./utils.css" />
		<script src="./index.full.js"></script>

		<script>
			//适配代码
			(function(doc, win) {
				var docEI = doc.documentElement,
					resizeEvt =
					"orientationchange" in window ? "orientataionchange" : "resize",
					recalc = function() {
						var clientWidth = docEI.clientWidth;
						if (!clientWidth) return;
						//100是字体大小，1536是开发时浏览器窗口的宽度，等比计算
						docEI.style.fontSize = 100 * (clientWidth / 1536) + "px";
					};

				if (!doc.addEventListener) return;
				win.addEventListener(resizeEvt, recalc, false);
				doc.addEventListener("DOMContentLoaded", recalc, false);
			})(document, window);
		</script>
		<style>
			* {
				/* margin: 0;
        padding: 0; */
				font-size: 0.15rem;
			}
		</style>
	</head>

	<body>
		<div id="app" class="table-content text-left ">
			<h3 class="text-center mb-2" style="font-size: 0.25rem">安全操作规程告知书</h3>


			<div class="text-indent">1、上岗前必须经过培训，并经考试合格取得上岗证后方可上岗作业。</div>
			<div class="text-indent">2、必须事先学习、熟悉统一的号子和信号，并在操作中严格执行。</div>
			<div class="text-indent">3、在电线下作业时，吊杆、桅杆、吊钩、绳索、构件和操作人员都应与电线保持规定的安全距离。</div>
			<div class="text-indent">4、机具、工具使用时，要确保不超出安全负重，重量不明的构件或没有规格的机具、工具，应事先查明，否则不准吊装和使用。</div>
			<div class="text-indent">5、要按照各种机具、工具的性能来使用和保养。</div>
			<div class="text-indent">6、要定期检查所使用的各种钢丝绳及部件、吊索、吊钩、链条、麻绳和葫芦等工具，发现问题及时调换或修理。</div>
			<div class="text-indent">7、起吊重物时，钢丝绳要保持垂直，上升速度不得超过设备的允许上升速度。</div>
			<div class="text-indent">
				8、吊起构件时，要平稳的提升或下降，不准有快松和急刹车等现象。起吊时要先拉紧绳索，详细检查并确认绳索扎接牢固后，再行起吊；降落时要慢慢放下，检查并确认构件已撑好或固定好后，再松脱绳索。</div>
			<div class="text-indent">9、正在起吊的构件上不准站人，起吊构件的正下方不准有人。</div>
			<div class="text-indent">10、高空作业要系安全带、穿防滑鞋、备工具袋，地面作业要戴安全帽。</div>
			<div class="text-indent">11、安装中的构件没有稳固的支撑或固定时，不准中途停工或离开，构件不允许长时间吊在空中。</div>


			<div class="d-flex flex-row mt-2 justify-content-between">
				<div>
					<div @click="setUpEquipment('operateForm.announcer','TaskSignFinger')">告知者（签字）： </div>
					<el-image v-show="operateForm.announcer" class="sign_img" :src="operateForm.announcer" fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
				<div>
					<div @click="setUpEquipment('operateForm.announcerd','TaskSignFinger')">被告知者（签字）：</div>
					<el-image v-show="operateForm.announcerd" class="sign_img" :src="operateForm.announcerd"
						fit="fill"></el-image>
					<div>
						<el-input v-model="operateForm.year1" class="people-input" placeholder=" " style="width: 0.8rem"></el-input>
						年
						<el-input v-model="operateForm.month1" class="people-input" placeholder=" "
							style="width: 0.5rem"></el-input>
						月
						<el-input v-model="operateForm.day1" class="people-input" placeholder=" " style="width: 0.5rem"></el-input>
						日
					</div>
				</div>
			</div>

		</div>
		<script>
			const {
				createApp,
				reactive,
				toRefs,
				ref,
				onMounted
			} = Vue;
			const vue3Composition = {
				setup() {
					const operateForm = ref({
						year: "",
						month: "",
						day: "",
						year1: "",
						month1: "",
						day1: "",
						announcer: "", //告知者
						announcerd: '', //被告知者
					});

					window.setSign = (event) => {
						operateForm.value[event.key] = event.img;
					};


					window.getData = (event) => {
						return operateForm.value;
					};
					window.setData = (data) => {
						operateForm.value = data;
					};

					//peopleForm.sign
					const setUpEquipment = (key, type) => {
						window.parent.childListener({
							key,
							type,
						});
					};
					return {
						operateForm,
						setUpEquipment,
					};
				},
			};
			const app = createApp(vue3Composition)
				.use(ElementPlus)
				.mount("#app");
		</script>
	</body>
</html>